package com.zaker.touchtv.data;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class AppCreateLiveResult implements Parcelable {

  private String stat;

  private String msg;

  @SerializedName("data")
  private CreateLiveEntry createLiveEntry;

  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.stat);
    dest.writeString(this.msg);
    dest.writeParcelable(this.createLiveEntry, flags);
  }

  public AppCreateLiveResult() {
  }

  public String getStat() {
    return stat;
  }

  public String getMsg() {
    return msg;
  }

  public CreateLiveEntry getCreateLiveEntry() {
    return createLiveEntry;
  }

  protected AppCreateLiveResult(Parcel in) {
    this.stat = in.readString();
    this.msg = in.readString();
    this.createLiveEntry = in.readParcelable(CreateLiveEntry.class.getClassLoader());
  }

  public static final Parcelable.Creator<AppCreateLiveResult> CREATOR = new Parcelable.Creator<AppCreateLiveResult>() {
    @Override
    public AppCreateLiveResult createFromParcel(Parcel source) {
      return new AppCreateLiveResult(source);
    }

    @Override
    public AppCreateLiveResult[] newArray(int size) {
      return new AppCreateLiveResult[size];
    }
  };
}
